import com.test.platform.model.PublishInfo
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext

class PublishInfoRepository {
    private val apiService = RetrofitClient.apiService
    
    suspend fun getPublishInfos(): List<PublishInfo> {
        return withContext(Dispatchers.IO) {
            try {
                apiService.getPublishInfo()
            } catch (e: Exception) {
                emptyList()
            }
        }
    }
}